<?
/**
 * VoiceOne Webservices Declarations
 *  
 * @package voiceone_webservices
 * @subpackage mISDN
 */
// ---- IsdnCard ---------------------------------------------------------------
$server->wsdl->addComplexType(
    'IsdnCard',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'id'         => array('name'=>'id',      'type'=>'xsd:int'),
        'name'       => array('name'=>'name',    'type'=>'xsd:string'),
        'ports'      => array('name'=>'ports',   'type'=>'xsd:int'),
        'driver'  	 => array('name'=>'driver',  'type'=>'xsd:string')
    )
);
// ---- IsdnCard[] -------------------------------------------------------------
$server->wsdl->addComplexType(
    'IsdnCardArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:IsdnCard[]')
    ),
    'tns:IsdnCard'
);
// ---- IsdnPort ---------------------------------------------------------------
$server->wsdl->addComplexType(
    'IsdnPort',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'id'             => array('name'=>'id',        'type'=>'xsd:int'),
        'port'           => array('name'=>'port',      'type'=>'xsd:int'),
        'layermask'      => array('name'=>'layermask', 'type'=>'xsd:string'),
        'protocol'       => array('name'=>'protocol',  'type'=>'xsd:string'),
        'channel'        => array('name'=>'channel',   'type'=>'xsd:int'),
        'card'           => array('name'=>'card',      'type'=>'xsd:int'),
        'card_id'        => array('name'=>'card',      'type'=>'xsd:int'),
        'available'      => array('name'=>'available', 'type'=>'xsd:int')
    )
);
// ---- IsdnPort[] -------------------------------------------------------------
$server->wsdl->addComplexType(
    'IsdnPortArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:IsdnPort[]')
    ),
    'tns:IsdnPort'
);
// ---- IsdnGroup --------------------------------------------------------------
$server->wsdl->addComplexType(
    'IsdnGroup',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'id'            => array('name'=>'id',            'type'=>'xsd:int'),
        'name'          => array('name'=>'name',          'type'=>'xsd:string'),
        'channel_order' => array('name'=>'channel_order', 'type'=>'xsd:int'),
        'msns'          => array('name'=>'msns',          'type'=>'tns:stringArray'),
        'port'          => array('name'=>'port',          'type'=>'tns:intArray'),
        //'rule'        => array('name'=>'rule',          'type'=>'xsd:int'),
        'speeddial'     => array('name'=>'speeddial',     'type'=>'xsd:string'),
        'port_type'     => array('name'=>'port_type',     'type'=>'xsd:string'),
        'did'           => array('name'=>'did',           'type'=>'xsd:int'),
        'cid'    				=> array('name'=>'cid',    				'type'=>'tns:ChannelCid')
    )
);
// ---- IsdnGroup[] ------------------------------------------------------------
$server->wsdl->addComplexType(
    'IsdnGroupArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:IsdnGroup[]')
    ),
    'tns:IsdnGroup'
);
?>